#!/usr/bin/python
# This python script uses Biopython modules

import sys
from Bio import SeqIO

seqfile = open(sys.argv[1], "rU")

for seq_rec in SeqIO.parse(seqfile, "fasta"):
    print str(seq_rec.id) + "\t" + str(len(seq_rec))

seqfile.close()

